package com.ssy.lingxi.logistics.model.enums;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 物流单审核状态
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-20
 */
public enum OrderLogisticsTypeEnum {
    /**
     * 不接受 - 0
     */
    NOT_ACCEPT(0, "不接受"),

    /**
     * 接受 - 1
     */
    ACCEPT(1, "接受"),

    /**
     * 待确认 - 2
     */
    TO_CONFIRM(2, "待确认");


    Integer YES = 1;
    Integer CONFIRM = 2;;

    OrderLogisticsTypeEnum(Integer code, String name) {
        this.code = code;
    }

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return LanguageHolder.getName(this.getClass(),this.code);
    }
}
